import styles from "./index.modules.less";
import { types } from "./const";
import SaleCardItem from "./SaleCardItem";
import { TabsType } from "./type";
type Props = {
  tabsKey: TabsType;
  params: any;
};
const App = (props: Props) => {
  const { tabsKey, params } = props;
  return (
    <div className={styles.cardList}>
      {types.map((item, index) => {
        return (
          <SaleCardItem
            key={`${index} + ${item.value} ${tabsKey}`}
            type={tabsKey}
            params={params}
            projectStage={item as any}
          />
        );
      })}
    </div>
  );
};
export default App;
